//
//  Rectangle.m
//  Demo0005
//
//  Created by zTercel on 12-12-31.
//  Copyright (c) 2012年 zTercel. All rights reserved.
//

#import "Rectangle.h"

@implementation Rectangle

@synthesize width;
@synthesize height;

-(void) print
{
    NSLog(@"I am a rectangle");
    
    [super print];
}

-(void) setSide: (UINT) w height: (UINT) h
{
    self.width  = w;
    self.height = h;
}

-(UINT) area
{
    return (height * width);
}

-(UINT) perimeter
{
    return (height + width) * 2;
}
@end
